/*Joseph A. Coll
Cleaning Google Mentions Voter Fraud
12/3/2024*/

import delimited  "G:\My Drive\Backup 08202022\Working Papers\Michaels Edited Volume\Election Policies Fraud Beliefs Confidence\Data and Methods\Voter Fraud Mentions.csv", clear varnames(1)
destring pop, ignore("<") replace
split month, p("-")
rename month yearmonth
rename month1 year
rename month2 month
destring year month, replace
gen id =_n
tsset id
label var popularity Popularity
label var id Time

tsline popularity if id < 228, ///
xlabel( ///
11 "2004" ///
35 "2006" ///
59 "2008" ///
83 "2010" ///
107 "2012" ///
131 "2014" ///
155 "2016" ///
179 "2018" ///
203 "2020" ///
227 "2022") ///
xtitle("Time") ///
ytitle("Relative Popularity")
